
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGStateChunk.h>
#include <OpenSG/OSGStateChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StateChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StateChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StateChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StateChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_StateChunk()
{
    class_< osg::StateChunkBase, bases< osg::Attachment > , boost::noncopyable >("StateChunkBase", no_init)
//        .def_readonly("MTInfluenceMask", &osg::StateChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::StateChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::StateChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::StateChunkBase::*)() )&osg::StateChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::StateChunkBase::*)() const)&osg::StateChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::StateChunkBase::getContainerSize)
        .def("getBinSize", &osg::StateChunkBase::getBinSize)
        .def("copyToBin", &osg::StateChunkBase::copyToBin)
        .def("copyFromBin", &osg::StateChunkBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    ;

    class_< osg::StateChunk, bases< osg::StateChunkBase > , boost::noncopyable, osg::StateChunkRefPtr >("StateChunk", no_init)
        .def("getClassId", &osg::StateChunk::getClassId)
        .def("getStaticClassId", &osg::StateChunk::getStaticClassId)
        .def("changed", &osg::StateChunk::changed)
        .def("dump", &osg::StateChunk::dump, osg_StateChunk_dump_overloads_0_2())
        .def("activate", &osg::StateChunk::activate, osg_StateChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::StateChunk::changeFrom, osg_StateChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::StateChunk::deactivate, osg_StateChunk_deactivate_overloads_1_2())
        .def("isTransparent", &osg::StateChunk::isTransparent)
        .def("switchCost", &osg::StateChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < self )
        //.def( self == self )
        //.def( self != self )
    ;


    register_ptr_to_python<osg::StateChunkPtr>();
    implicitly_convertible<osg::StateChunkRefPtr, osg::StateChunkPtr>();
    implicitly_convertible<osg::StateChunkPtr, osg::AttachmentPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::StateChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::StateChunkPtr>);
}

